package cn.com.connext.scrm.domain.master;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.connext.common.domain.UUIDDomain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Date;

/**
 * Created by YANG205 on 2018/6/27.
 */
@Entity
@Table(name = "comment")   // 定义数据库表名
public class Comment implements UUIDDomain, Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "note_id", nullable = false)
    private String noteId;

    @Column(name = "user_id", nullable = false)
    private String userId;

    @Column(name = "comment_id")
    private String commentId;

    @Column(name = "reply_user_id")
    private String replyUserId;

    @Column(name = "reply_comment_id")
    private String replyCommentId;

    @Column(name = "content", nullable = false)
    private String content;

    @Column(name = "reply_type", nullable = false)
    private Integer replyType;

    @Column(name = "create_time")
    private ZonedDateTime createTime;

    @Column(name = "head_img_url")
    private String headImgUrl;

    @Column(name = "user_name", nullable = false)
    private String userName;

    @Column(name = "reply_user_name")
    private String replyUserName;

    @Column(name = "created_index")
    private Integer createdIndex;

    @Column(name = "is_delete")
    private Boolean isDelete;

    @Column(name = "delete_time")
    private Date deleteTime;

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public String getReplyUserId() {
        return replyUserId;
    }

    public void setReplyUserId(String replyUserId) {
        this.replyUserId = replyUserId;
    }

    public String getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(String replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getReplyType() {
        return replyType;
    }

    public void setReplyType(Integer replyType) {
        this.replyType = replyType;
    }

    public ZonedDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(ZonedDateTime createTime) {
        this.createTime = createTime;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName;
    }

    public Integer getCreatedIndex() {
        return createdIndex;
    }

    public void setCreatedIndex(Integer createdIndex) {
        this.createdIndex = createdIndex;
    }
}
